package com.person.ntv.dao.sys;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.github.pagehelper.Page;
import com.person.ntv.baseMapper.BaseMapper;
import com.person.ntv.entity.sys.SysResource;
import com.person.ntv.shiro.util.UrlFilter;

public interface SysResourceMapper extends BaseMapper<SysResource>{
	
	public Page<SysResource>getSysResources(Map<String,String> params) throws  Exception;
	
	public List<Map<String, Object>> getMenuTree(Map<String,String> params) throws Exception;
	
	public List<Map<String, Object>> getMenuTreeByRole(@Param("roleIds")String roleIds) throws Exception;
	
	public List<Map<String, Object>> getPageTreeByRole(@Param("roleIds")String roleIds) throws Exception;
	
	public int addProvision(List<Map<String,Object>> list)throws Exception;
	
	public int deleteProvision(List<Map<String,Object>> list)throws Exception;
	
	public int validateResName(Map<String,String> params)throws Exception;
	
	public List<UrlFilter>getAllUrlFilter()throws Exception;
	
}